package com.androidx.p013lv.mine.novel.view;

import android.view.View;
import android.widget.LinearLayout;
import android.widget.TextView;
import com.androidx.p013lv.base.bean.novel.LikeNovelBean;
import com.androidx.p013lv.base.utils.UiUtils;
import com.androidx.p013lv.mine.C1207R;
import com.androidx.p013lv.mine.OnClickListenTypes;

/* renamed from: com.androidx.lv.mine.novel.view.LikeNovelOneView */
public class LikeNovelOneView {
    String domain;
    LinearLayout ll_item_layouts;
    OnClickListenTypes onClickListenTypes;
    TextView tv_favorites_num;
    TextView tv_info;
    TextView tv_see_num;
    TextView tv_title;

    public LikeNovelOneView(View view, String str, OnClickListenTypes onClickListenTypes2) {
        this.domain = str;
        this.onClickListenTypes = onClickListenTypes2;
        this.ll_item_layouts = (LinearLayout) view.findViewById(C1207R.C1210id.ll_item_layouts);
        this.tv_title = (TextView) view.findViewById(C1207R.C1210id.tv_title);
        this.tv_info = (TextView) view.findViewById(C1207R.C1210id.tv_content_info);
        this.tv_see_num = (TextView) view.findViewById(C1207R.C1210id.tv_see_num);
        this.tv_favorites_num = (TextView) view.findViewById(C1207R.C1210id.tv_favorites_num);
    }

    public void setView(final LikeNovelBean.LikeNovelBeanData likeNovelBeanData, final int i) {
        TextView textView = this.tv_title;
        textView.setText(likeNovelBeanData.getFictionTitle() + "");
        TextView textView2 = this.tv_info;
        textView2.setText(likeNovelBeanData.getInfo() + "");
        TextView textView3 = this.tv_see_num;
        textView3.setText(UiUtils.num2str(likeNovelBeanData.getFakeWatchTimes()) + "");
        TextView textView4 = this.tv_favorites_num;
        textView4.setText(UiUtils.num2str(likeNovelBeanData.getFakeLikes()) + "");
        this.ll_item_layouts.setOnClickListener(new View.OnClickListener() {
            /* class com.androidx.p013lv.mine.novel.view.LikeNovelOneView.View$OnClickListenerC13821 */

            public void onClick(View view) {
                LikeNovelOneView.this.onClickListenTypes.onClick(likeNovelBeanData, i, view.getId());
            }
        });
    }
}
